import { observable, action,toJS} from 'mobx';
import * as  Apis from '../../apis/govern';

export default class DoSearchStore {
  domSearchStore = null;
  pageNum = 0;
  @observable loading = true;
  constructor(params) {
    if(params){
     if (params.domSearchStore) {
        const {domSearchStore} = params;
        this.domSearchStore = domSearchStore;
      }
    }
    this.searchInfoByApi = this.searchInfoByApi.bind(this);
  }
  //获取当前tab
  @action
  getTabKey(tabKey){
    this.domSearchStore.tabKey = tabKey;
  }
  //搜索信息(调用接口)
  searchInfoByApi(tabKey){
    if(tabKey === 0){//责任事项
    }else if(tabKey === 1){//代发事项

    }else if(tabKey === 2){//监控列表

    }else if (tabKey === 3){//事项查询

    }
  }
}
